
package com.bei_en.teacher.admin.model.questions.vo;

import java.util.*;
import com.bei_en.teacher.admin.model.questions.bean.QuestionsDatabase;
import com.bei_en.teacher.admin.model.BaseVo;
import javax.validation.constraints.*;
import org.hibernate.validator.constraints.*;
import java.math.BigDecimal;

/**
 * 用于前端页面数据传递
 * 
 * @author Guocg
 * @date 2016-8-20 23:58:54
 */
public class QuestionsDatabaseVo extends BaseVo {

    private QuestionsDatabase questionsDatabase;

    public QuestionsDatabaseVo() {

    this.questionsDatabase = new QuestionsDatabase();
    }

    public QuestionsDatabaseVo(QuestionsDatabase questionsDatabase) {

    this.questionsDatabase = questionsDatabase;
    }
    
    public QuestionsDatabase getQuestionsDatabase() {

    return this.questionsDatabase;
    }
    
    public void setQuestionsDatabase(QuestionsDatabase questionsDatabase) {

    this.questionsDatabase=questionsDatabase;
    }

        public Integer getId() {
            return this.questionsDatabase.getId();
        }
        public void setId(Integer id) {
            this.questionsDatabase.setId(id);
        }
        
        public void setId(Integer value) {
    	this.questionsDatabase.setId(value);
        }
	
    public Integer getId() {
        return this.questionsDatabase.getId();
    }
        
        public void setVersion(String value) {
    	this.questionsDatabase.setVersion(value);
        }
	@Length(max=255)
    public String getVersion() {
        return this.questionsDatabase.getVersion();
    }
        
        public void setType(Integer value) {
    	this.questionsDatabase.setType(value);
        }
	
    public Integer getType() {
        return this.questionsDatabase.getType();
    }
        
        public void setContent(String value) {
    	this.questionsDatabase.setContent(value);
        }
	@Length(max=65535)
    public String getContent() {
        return this.questionsDatabase.getContent();
    }
        
    public void setCreateTime(Date value) {
        this.questionsDatabase.setCreateTime(value!=null ? (int) (value.getTime()/1000) : 0);
    }

	 public Date getCreateTime() {
	     Integer time=this.questionsDatabase.getCreateTime();
	     if (time!=null&&time!=0)
		    return new Date(Long.valueOf(time)*1000);
		else
		    return null;
	    }
    


}